const express = require('express')
const multer = require('multer')
const path = require('path')
const expressJoi = require('@escook/express-joi')
const router = express.Router()

const { add_article_schema } = require('../schema/artcate')

//   使用 upload 解析 formData 中的图片数据 ， 后续作为一个局部中间件使用
const upload = multer({ dast: path.join(__dirname, '../uploads') })

const article_handler = require('../router_handler/article')

router.post('/add', article_handler.addArticle)
module.exports = router
